package com.beidouapp.security.model;

import java.io.Serializable;
import java.util.List;
import java.util.Locale;

public class SessionUser implements Serializable {
	private static final long serialVersionUID = -789016191695664353L;
	private Long userId;
	private String userName; // the login user name (at time of login)
	private Long orgId; // the login domain UUID
	private String orgCode;// 驾校的编码
	private String orgName; // the login domain name (at the time of login)
	private Long roleId; // the login role UUId
	private String roleName; // the login role name (at the time of login)
	private String userGMTOffset; // the remote host GMT offset
	private int userTimezoneOffset; // the remote host timezone offset
	private String ip; // the remote host ip address
	private String httpSessionId;
	private String loginname;
	private Long empId;
	private String empAddress;

	private List<String> resourceCodes;
	private String roleStatus;
	private String token;

	private Boolean isSuccess;//是否登录成功
	private String errorMsg;//登录失败提示消息

	/**
	 * 本地语言(国际化.)
	 */
	private Locale locaLanguage = Locale.getDefault();

	/**
	 * 对应角色组ID
	 */
	private Long roleGroupId;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public Long getOrgId() {
		return orgId;
	}

	public void setOrgId(Long orgId) {
		this.orgId = orgId;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getUserGMTOffset() {
		return userGMTOffset;
	}

	public void setUserGMTOffset(String userGMTOffset) {
		this.userGMTOffset = userGMTOffset;
	}

	public int getUserTimezoneOffset() {
		return userTimezoneOffset;
	}

	public void setUserTimezoneOffset(int userTimezoneOffset) {
		this.userTimezoneOffset = userTimezoneOffset;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getHttpSessionId() {
		return httpSessionId;
	}

	public void setHttpSessionId(String httpSessionId) {
		this.httpSessionId = httpSessionId;
	}

	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public Long getEmpId() {
		return empId;
	}

	public void setEmpId(Long empId) {
		this.empId = empId;
	}

	public String getEmpAddress() {
		return empAddress;
	}

	public void setEmpAddress(String empAddress) {
		this.empAddress = empAddress;
	}

	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	public List<String> getResourceCodes() {
		return resourceCodes;
	}

	public void setResourceCodes(List<String> resourceCodes) {
		this.resourceCodes = resourceCodes;
	}

	public String getRoleStatus() {
		return roleStatus;
	}

	public void setRoleStatus(String roleStatus) {
		this.roleStatus = roleStatus;
	}

	public Long getRoleGroupId() {
		return roleGroupId;
	}

	public void setRoleGroupId(Long roleGroupId) {
		this.roleGroupId = roleGroupId;
	}

	public Locale getLocaLanguage() {
		return locaLanguage;
	}

	public void setLocaLanguage(Locale locaLanguage) {
		this.locaLanguage = locaLanguage;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Boolean getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	
}
